#include "inc/qd_env.h"


#include <string.h>
#include <stdlib.h>

namespace QDENV{

    QCHAR           IP[16];
    QINT_32         PORT;
    QCHAR           PATH[127];

    void CONFIG(C_QCHAR *file){
        INIReader ini(file);

        strcpy(IP, ini.GetString("server", "ip", "0.0.0.0").c_str());

        PORT = ini.GetInteger("server", "port", 8848);

        strcpy(PATH, ini.GetString("server", "path", "/tmp/").c_str());

        

    }
}
